-
Notifications
You must be signed in to change notification settings - Fork 256
/
ServicePartitionClient`1.xml
495 lines (495 loc) · 38.8 KB
/
ServicePartitionClient`1.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
<Type Name="ServicePartitionClient<TCommunicationClient>" FullName="Microsoft.ServiceFabric.Services.Communication.Client.ServicePartitionClient<TCommunicationClient>">
<TypeSignature Language="C#" Value="public class ServicePartitionClient<TCommunicationClient> : Microsoft.ServiceFabric.Services.Communication.Client.IServicePartitionClient<TCommunicationClient> where TCommunicationClient : ICommunicationClient" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit ServicePartitionClient`1<(class Microsoft.ServiceFabric.Services.Communication.Client.ICommunicationClient) TCommunicationClient> extends System.Object implements class Microsoft.ServiceFabric.Services.Communication.Client.IServicePartitionClient`1<!TCommunicationClient>" />
<TypeSignature Language="DocId" Value="T:Microsoft.ServiceFabric.Services.Communication.Client.ServicePartitionClient`1" />
<TypeSignature Language="VB.NET" Value="Public Class ServicePartitionClient(Of TCommunicationClient)
Implements IServicePartitionClient(Of TCommunicationClient)" />
<TypeSignature Language="F#" Value="type ServicePartitionClient<'CommunicationClient (requires 'CommunicationClient :> ICommunicationClient)> = class
 interface IServicePartitionClient<'CommunicationClient (requires 'CommunicationClient :> ICommunicationClient)>" />
<AssemblyInfo>
<AssemblyName>Microsoft.ServiceFabric.Services</AssemblyName>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
</AssemblyInfo>
<TypeParameters>
<TypeParameter Name="TCommunicationClient">
<Constraints>
<InterfaceName>Microsoft.ServiceFabric.Services.Communication.Client.ICommunicationClient</InterfaceName>
</Constraints>
</TypeParameter>
</TypeParameters>
<Base>
<BaseTypeName>System.Object</BaseTypeName>
</Base>
<Interfaces>
<Interface>
<InterfaceName>Microsoft.ServiceFabric.Services.Communication.Client.IServicePartitionClient<TCommunicationClient></InterfaceName>
</Interface>
</Interfaces>
<Docs>
<typeparam name="TCommunicationClient">type of Communication client</typeparam>
<summary>
Specifies an instance of the communication client that can communicate with the replicas of a particular partition.
</summary>
<remarks>To be added.</remarks>
</Docs>
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public ServicePartitionClient (Microsoft.ServiceFabric.Services.Communication.Client.ICommunicationClientFactory<TCommunicationClient> communicationClientFactory, Uri serviceUri, Microsoft.ServiceFabric.Services.Client.ServicePartitionKey partitionKey = default, Microsoft.ServiceFabric.Services.Communication.Client.TargetReplicaSelector targetReplicaSelector = Microsoft.ServiceFabric.Services.Communication.Client.TargetReplicaSelector.PrimaryReplica, string listenerName = default, Microsoft.ServiceFabric.Services.Communication.Client.OperationRetrySettings retrySettings = default);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(class Microsoft.ServiceFabric.Services.Communication.Client.ICommunicationClientFactory`1<!TCommunicationClient> communicationClientFactory, class System.Uri serviceUri, class Microsoft.ServiceFabric.Services.Client.ServicePartitionKey partitionKey, valuetype Microsoft.ServiceFabric.Services.Communication.Client.TargetReplicaSelector targetReplicaSelector, string listenerName, class Microsoft.ServiceFabric.Services.Communication.Client.OperationRetrySettings retrySettings) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.ServiceFabric.Services.Communication.Client.ServicePartitionClient`1.#ctor(Microsoft.ServiceFabric.Services.Communication.Client.ICommunicationClientFactory{`0},System.Uri,Microsoft.ServiceFabric.Services.Client.ServicePartitionKey,Microsoft.ServiceFabric.Services.Communication.Client.TargetReplicaSelector,System.String,Microsoft.ServiceFabric.Services.Communication.Client.OperationRetrySettings)" />
<MemberSignature Language="VB.NET" Value="Public Sub New (communicationClientFactory As ICommunicationClientFactory(Of TCommunicationClient), serviceUri As Uri, Optional partitionKey As ServicePartitionKey = Nothing, Optional targetReplicaSelector As TargetReplicaSelector = Microsoft.ServiceFabric.Services.Communication.Client.TargetReplicaSelector.PrimaryReplica, Optional listenerName As String = Nothing, Optional retrySettings As OperationRetrySettings = Nothing)" />
<MemberSignature Language="F#" Value="new Microsoft.ServiceFabric.Services.Communication.Client.ServicePartitionClient<'CommunicationClient (requires 'CommunicationClient :> Microsoft.ServiceFabric.Services.Communication.Client.ICommunicationClient)> : Microsoft.ServiceFabric.Services.Communication.Client.ICommunicationClientFactory<'CommunicationClient (requires 'CommunicationClient :> Microsoft.ServiceFabric.Services.Communication.Client.ICommunicationClient)> * Uri * Microsoft.ServiceFabric.Services.Client.ServicePartitionKey * Microsoft.ServiceFabric.Services.Communication.Client.TargetReplicaSelector * string * Microsoft.ServiceFabric.Services.Communication.Client.OperationRetrySettings -> Microsoft.ServiceFabric.Services.Communication.Client.ServicePartitionClient<'CommunicationClient (requires 'CommunicationClient :> Microsoft.ServiceFabric.Services.Communication.Client.ICommunicationClient)>" Usage="new Microsoft.ServiceFabric.Services.Communication.Client.ServicePartitionClient<'CommunicationClient (requires 'CommunicationClient :> Microsoft.ServiceFabric.Services.Communication.Client.ICommunicationClient)> (communicationClientFactory, serviceUri, partitionKey, targetReplicaSelector, listenerName, retrySettings)" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.ServiceFabric.Services</AssemblyName>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Parameters>
<Parameter Name="communicationClientFactory" Type="Microsoft.ServiceFabric.Services.Communication.Client.ICommunicationClientFactory<TCommunicationClient>" />
<Parameter Name="serviceUri" Type="System.Uri" />
<Parameter Name="partitionKey" Type="Microsoft.ServiceFabric.Services.Client.ServicePartitionKey" />
<Parameter Name="targetReplicaSelector" Type="Microsoft.ServiceFabric.Services.Communication.Client.TargetReplicaSelector" />
<Parameter Name="listenerName" Type="System.String" />
<Parameter Name="retrySettings" Type="Microsoft.ServiceFabric.Services.Communication.Client.OperationRetrySettings" />
</Parameters>
<Docs>
<param name="communicationClientFactory">Communication client factory</param>
<param name="serviceUri">Name of the service</param>
<param name="partitionKey">The partition key used to identify the partition within the service.</param>
<param name="targetReplicaSelector">Target replica information</param>
<param name="listenerName">Listener in the replica to which the client should connect to</param>
<param name="retrySettings">Retry policy for exceptions seen during communication</param>
<summary>
Initializes a new instance of the <see cref="T:Microsoft.ServiceFabric.Services.Communication.Client.ServicePartitionClient`1" /> class that uses the specified communication client factory to create
a client to talk to the service endpoint identified by the service uri, partitionkey, replica and listener
arguments.
</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="Factory">
<MemberSignature Language="C#" Value="public Microsoft.ServiceFabric.Services.Communication.Client.ICommunicationClientFactory<TCommunicationClient> Factory { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class Microsoft.ServiceFabric.Services.Communication.Client.ICommunicationClientFactory`1<!TCommunicationClient> Factory" />
<MemberSignature Language="DocId" Value="P:Microsoft.ServiceFabric.Services.Communication.Client.ServicePartitionClient`1.Factory" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property Factory As ICommunicationClientFactory(Of TCommunicationClient)" />
<MemberSignature Language="F#" Value="member this.Factory : Microsoft.ServiceFabric.Services.Communication.Client.ICommunicationClientFactory<'CommunicationClient (requires 'CommunicationClient :> Microsoft.ServiceFabric.Services.Communication.Client.ICommunicationClient)>" Usage="Microsoft.ServiceFabric.Services.Communication.Client.ServicePartitionClient<'CommunicationClient (requires 'CommunicationClient :> Microsoft.ServiceFabric.Services.Communication.Client.ICommunicationClient)>.Factory" />
<MemberType>Property</MemberType>
<Implements>
<InterfaceMember>P:Microsoft.ServiceFabric.Services.Communication.Client.IServicePartitionClient`1.Factory</InterfaceMember>
</Implements>
<AssemblyInfo>
<AssemblyName>Microsoft.ServiceFabric.Services</AssemblyName>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>Microsoft.ServiceFabric.Services.Communication.Client.ICommunicationClientFactory<TCommunicationClient></ReturnType>
</ReturnValue>
<Docs>
<summary>
Gets the communication client factory
</summary>
<value>Communication client factory</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="InvokeWithRetry">
<MemberSignature Language="C#" Value="public void InvokeWithRetry (Action<TCommunicationClient> func, params Type[] doNotRetryExceptionTypes);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void InvokeWithRetry(class System.Action`1<!TCommunicationClient> func, class System.Type[] doNotRetryExceptionTypes) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.ServiceFabric.Services.Communication.Client.ServicePartitionClient`1.InvokeWithRetry(System.Action{`0},System.Type[])" />
<MemberSignature Language="VB.NET" Value="Public Sub InvokeWithRetry (func As Action(Of TCommunicationClient), ParamArray doNotRetryExceptionTypes As Type())" />
<MemberSignature Language="F#" Value="member this.InvokeWithRetry : Action<'CommunicationClient (requires 'CommunicationClient :> Microsoft.ServiceFabric.Services.Communication.Client.ICommunicationClient)> * Type[] -> unit" Usage="servicePartitionClient.InvokeWithRetry (func, doNotRetryExceptionTypes)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.ServiceFabric.Services</AssemblyName>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.Obsolete("Use InvokeWithRetryAsync Api instead ")]</AttributeName>
<AttributeName Language="F#">[<System.Obsolete("Use InvokeWithRetryAsync Api instead ")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="func" Type="System.Action<TCommunicationClient>" />
<Parameter Name="doNotRetryExceptionTypes" Type="System.Type[]">
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.ParamArray]</AttributeName>
<AttributeName Language="F#">[<System.ParamArray>]</AttributeName>
</Attribute>
</Attributes>
</Parameter>
</Parameters>
<Docs>
<param name="func">Function being invoked</param>
<param name="doNotRetryExceptionTypes">Exceptions for which the service partition client should not retry</param>
<summary>
Invokes the given Function, retrying for exceptions thrown other than the exceptions in the doNotRetryExceptionTypes.
For exceptions that are not in doNotRetryExceptionTypes, CommunicationClientFactory's ReportOperationExceptionAsync() method
controls if the exception should be retried or not.
</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="InvokeWithRetry<TResult>">
<MemberSignature Language="C#" Value="public TResult InvokeWithRetry<TResult> (Func<TCommunicationClient,TResult> func, params Type[] doNotRetryExceptionTypes);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance !!TResult InvokeWithRetry<TResult>(class System.Func`2<!TCommunicationClient, !!TResult> func, class System.Type[] doNotRetryExceptionTypes) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.ServiceFabric.Services.Communication.Client.ServicePartitionClient`1.InvokeWithRetry``1(System.Func{`0,``0},System.Type[])" />
<MemberSignature Language="VB.NET" Value="Public Function InvokeWithRetry(Of TResult) (func As Func(Of TCommunicationClient, TResult), ParamArray doNotRetryExceptionTypes As Type()) As TResult" />
<MemberSignature Language="F#" Value="member this.InvokeWithRetry : Func<'CommunicationClient, 'Result (requires 'CommunicationClient :> Microsoft.ServiceFabric.Services.Communication.Client.ICommunicationClient)> * Type[] -> 'Result" Usage="servicePartitionClient.InvokeWithRetry (func, doNotRetryExceptionTypes)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.ServiceFabric.Services</AssemblyName>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.Obsolete("Use InvokeWithRetryAsync Api instead ")]</AttributeName>
<AttributeName Language="F#">[<System.Obsolete("Use InvokeWithRetryAsync Api instead ")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>TResult</ReturnType>
</ReturnValue>
<TypeParameters>
<TypeParameter Name="TResult" />
</TypeParameters>
<Parameters>
<Parameter Name="func" Type="System.Func<TCommunicationClient,TResult>" />
<Parameter Name="doNotRetryExceptionTypes" Type="System.Type[]">
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.ParamArray]</AttributeName>
<AttributeName Language="F#">[<System.ParamArray>]</AttributeName>
</Attribute>
</Attributes>
</Parameter>
</Parameters>
<Docs>
<typeparam name="TResult">Result from the function being invoked</typeparam>
<param name="func">Function being invoked</param>
<param name="doNotRetryExceptionTypes">Exceptions for which the service partition client should not retry</param>
<summary>
Invokes the given Function, retrying for exceptions thrown other than the exceptions in the doNotRetryExceptionTypes.
For exceptions that are not in doNotRetryExceptionTypes, CommunicationClientFactory's ReportOperationExceptionAsync() method
controls if the exception should be retried or not.
</summary>
<returns>Result from the function given in the argument</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="InvokeWithRetryAsync">
<MemberSignature Language="C#" Value="public System.Threading.Tasks.Task InvokeWithRetryAsync (Func<TCommunicationClient,System.Threading.Tasks.Task> func, params Type[] doNotRetryExceptionTypes);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Threading.Tasks.Task InvokeWithRetryAsync(class System.Func`2<!TCommunicationClient, class System.Threading.Tasks.Task> func, class System.Type[] doNotRetryExceptionTypes) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.ServiceFabric.Services.Communication.Client.ServicePartitionClient`1.InvokeWithRetryAsync(System.Func{`0,System.Threading.Tasks.Task},System.Type[])" />
<MemberSignature Language="VB.NET" Value="Public Function InvokeWithRetryAsync (func As Func(Of TCommunicationClient, Task), ParamArray doNotRetryExceptionTypes As Type()) As Task" />
<MemberSignature Language="F#" Value="member this.InvokeWithRetryAsync : Func<'CommunicationClient, System.Threading.Tasks.Task (requires 'CommunicationClient :> Microsoft.ServiceFabric.Services.Communication.Client.ICommunicationClient)> * Type[] -> System.Threading.Tasks.Task" Usage="servicePartitionClient.InvokeWithRetryAsync (func, doNotRetryExceptionTypes)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.ServiceFabric.Services</AssemblyName>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Threading.Tasks.Task</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="func" Type="System.Func<TCommunicationClient,System.Threading.Tasks.Task>" />
<Parameter Name="doNotRetryExceptionTypes" Type="System.Type[]">
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.ParamArray]</AttributeName>
<AttributeName Language="F#">[<System.ParamArray>]</AttributeName>
</Attribute>
</Attributes>
</Parameter>
</Parameters>
<Docs>
<param name="func">Function being invoked</param>
<param name="doNotRetryExceptionTypes">Exceptions for which the service partition client should not retry</param>
<summary>
Invokes the given Function, retrying for exceptions thrown other than the exceptions in the doNotRetryExceptionTypes.
For exceptions that are not in doNotRetryExceptionTypes, CommunicationClientFactory's ReportOperationExceptionAsync() method
controls if the exception should be retried or not.
If you are invoking this method in Asp.Net / UI thread, these are recommendations to avoid deadlock:
1 if your calling Api is Async , use <see cref="M:System.Threading.Tasks.Task.ConfigureAwait(System.Boolean)" /> to not to resume in orignal context by setting it to false.
2 Or To invoke this Api in a threadpool thread using Task.Run.
</summary>
<returns>
A <see cref="T:System.Threading.Tasks.Task">Task</see> that represents outstanding operation.
</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="InvokeWithRetryAsync">
<MemberSignature Language="C#" Value="public System.Threading.Tasks.Task InvokeWithRetryAsync (Func<TCommunicationClient,System.Threading.Tasks.Task> func, System.Threading.CancellationToken cancellationToken, params Type[] doNotRetryExceptionTypes);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Threading.Tasks.Task InvokeWithRetryAsync(class System.Func`2<!TCommunicationClient, class System.Threading.Tasks.Task> func, valuetype System.Threading.CancellationToken cancellationToken, class System.Type[] doNotRetryExceptionTypes) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.ServiceFabric.Services.Communication.Client.ServicePartitionClient`1.InvokeWithRetryAsync(System.Func{`0,System.Threading.Tasks.Task},System.Threading.CancellationToken,System.Type[])" />
<MemberSignature Language="VB.NET" Value="Public Function InvokeWithRetryAsync (func As Func(Of TCommunicationClient, Task), cancellationToken As CancellationToken, ParamArray doNotRetryExceptionTypes As Type()) As Task" />
<MemberSignature Language="F#" Value="member this.InvokeWithRetryAsync : Func<'CommunicationClient, System.Threading.Tasks.Task (requires 'CommunicationClient :> Microsoft.ServiceFabric.Services.Communication.Client.ICommunicationClient)> * System.Threading.CancellationToken * Type[] -> System.Threading.Tasks.Task" Usage="servicePartitionClient.InvokeWithRetryAsync (func, cancellationToken, doNotRetryExceptionTypes)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.ServiceFabric.Services</AssemblyName>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Threading.Tasks.Task</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="func" Type="System.Func<TCommunicationClient,System.Threading.Tasks.Task>" />
<Parameter Name="cancellationToken" Type="System.Threading.CancellationToken" />
<Parameter Name="doNotRetryExceptionTypes" Type="System.Type[]">
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.ParamArray]</AttributeName>
<AttributeName Language="F#">[<System.ParamArray>]</AttributeName>
</Attribute>
</Attributes>
</Parameter>
</Parameters>
<Docs>
<param name="func">Function being invoked</param>
<param name="cancellationToken">Cancellation token</param>
<param name="doNotRetryExceptionTypes">Exceptions for which the service partition client should not retry</param>
<summary>
Invokes the given Function, retrying for exceptions thrown other than the exceptions in the doNotRetryExceptionTypes.
For exceptions that are not in doNotRetryExceptionTypes, CommunicationClientFactory's ReportOperationExceptionAsync() method
controls if the exception should be retried or not.
If you are invoking this method in Asp.Net / UI thread, these are recommendations to avoid deadlock:
1 if your calling Api is Async , use <see cref="M:System.Threading.Tasks.Task.ConfigureAwait(System.Boolean)" /> to not to resume in orignal context by setting it to false.
2 Or To invoke this Api in a threadpool thread using Task.Run.
</summary>
<returns>
A <see cref="T:System.Threading.Tasks.Task">Task</see> that represents outstanding operation.
</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="InvokeWithRetryAsync<TResult>">
<MemberSignature Language="C#" Value="public System.Threading.Tasks.Task<TResult> InvokeWithRetryAsync<TResult> (Func<TCommunicationClient,System.Threading.Tasks.Task<TResult>> func, params Type[] doNotRetryExceptionTypes);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Threading.Tasks.Task`1<!!TResult> InvokeWithRetryAsync<TResult>(class System.Func`2<!TCommunicationClient, class System.Threading.Tasks.Task`1<!!TResult>> func, class System.Type[] doNotRetryExceptionTypes) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.ServiceFabric.Services.Communication.Client.ServicePartitionClient`1.InvokeWithRetryAsync``1(System.Func{`0,System.Threading.Tasks.Task{``0}},System.Type[])" />
<MemberSignature Language="VB.NET" Value="Public Function InvokeWithRetryAsync(Of TResult) (func As Func(Of TCommunicationClient, Task(Of TResult)), ParamArray doNotRetryExceptionTypes As Type()) As Task(Of TResult)" />
<MemberSignature Language="F#" Value="member this.InvokeWithRetryAsync : Func<'CommunicationClient, System.Threading.Tasks.Task<'Result> (requires 'CommunicationClient :> Microsoft.ServiceFabric.Services.Communication.Client.ICommunicationClient)> * Type[] -> System.Threading.Tasks.Task<'Result>" Usage="servicePartitionClient.InvokeWithRetryAsync (func, doNotRetryExceptionTypes)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.ServiceFabric.Services</AssemblyName>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Threading.Tasks.Task<TResult></ReturnType>
</ReturnValue>
<TypeParameters>
<TypeParameter Name="TResult" />
</TypeParameters>
<Parameters>
<Parameter Name="func" Type="System.Func<TCommunicationClient,System.Threading.Tasks.Task<TResult>>" />
<Parameter Name="doNotRetryExceptionTypes" Type="System.Type[]">
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.ParamArray]</AttributeName>
<AttributeName Language="F#">[<System.ParamArray>]</AttributeName>
</Attribute>
</Attributes>
</Parameter>
</Parameters>
<Docs>
<typeparam name="TResult">Result from the function being invoked</typeparam>
<param name="func">Function being invoked</param>
<param name="doNotRetryExceptionTypes">Exceptions for which the service partition client should not retry</param>
<summary>
Invokes the given Function, retrying for exceptions thrown other than the exceptions in the doNotRetryExceptionTypes.
For exceptions that are not in doNotRetryExceptionTypes, CommunicationClientFactory's ReportOperationExceptionAsync() method
controls if the exception should be retried or not.
If you are invoking this method in Asp.Net / UI thread, these are recommendations to avoid deadlock:
1 if your calling Api is Async , use <see cref="M:System.Threading.Tasks.Task.ConfigureAwait(System.Boolean)" /> to not to resume in orignal context by setting it to false.
2 Or To invoke this Api in a threadpool thread using Task.Run.
</summary>
<returns>
A <see cref="T:System.Threading.Tasks.Task">Task</see> that represents outstanding operation. The result of the Task is
the result from the function given in the argument.
</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="InvokeWithRetryAsync<TResult>">
<MemberSignature Language="C#" Value="public System.Threading.Tasks.Task<TResult> InvokeWithRetryAsync<TResult> (Func<TCommunicationClient,System.Threading.Tasks.Task<TResult>> func, System.Threading.CancellationToken cancellationToken, params Type[] doNotRetryExceptionTypes);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Threading.Tasks.Task`1<!!TResult> InvokeWithRetryAsync<TResult>(class System.Func`2<!TCommunicationClient, class System.Threading.Tasks.Task`1<!!TResult>> func, valuetype System.Threading.CancellationToken cancellationToken, class System.Type[] doNotRetryExceptionTypes) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.ServiceFabric.Services.Communication.Client.ServicePartitionClient`1.InvokeWithRetryAsync``1(System.Func{`0,System.Threading.Tasks.Task{``0}},System.Threading.CancellationToken,System.Type[])" />
<MemberSignature Language="VB.NET" Value="Public Function InvokeWithRetryAsync(Of TResult) (func As Func(Of TCommunicationClient, Task(Of TResult)), cancellationToken As CancellationToken, ParamArray doNotRetryExceptionTypes As Type()) As Task(Of TResult)" />
<MemberSignature Language="F#" Value="member this.InvokeWithRetryAsync : Func<'CommunicationClient, System.Threading.Tasks.Task<'Result> (requires 'CommunicationClient :> Microsoft.ServiceFabric.Services.Communication.Client.ICommunicationClient)> * System.Threading.CancellationToken * Type[] -> System.Threading.Tasks.Task<'Result>" Usage="servicePartitionClient.InvokeWithRetryAsync (func, cancellationToken, doNotRetryExceptionTypes)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.ServiceFabric.Services</AssemblyName>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Threading.Tasks.Task<TResult></ReturnType>
</ReturnValue>
<TypeParameters>
<TypeParameter Name="TResult" />
</TypeParameters>
<Parameters>
<Parameter Name="func" Type="System.Func<TCommunicationClient,System.Threading.Tasks.Task<TResult>>" />
<Parameter Name="cancellationToken" Type="System.Threading.CancellationToken" />
<Parameter Name="doNotRetryExceptionTypes" Type="System.Type[]">
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.ParamArray]</AttributeName>
<AttributeName Language="F#">[<System.ParamArray>]</AttributeName>
</Attribute>
</Attributes>
</Parameter>
</Parameters>
<Docs>
<typeparam name="TResult">Result from the function being invoked</typeparam>
<param name="func">Function being invoked</param>
<param name="cancellationToken">Cancellation token</param>
<param name="doNotRetryExceptionTypes">Exceptions for which the service partition client should not retry</param>
<summary>
Invokes the given Function, retrying for exceptions thrown other than the exceptions in the doNotRetryExceptionTypes.
For exceptions that are not in doNotRetryExceptionTypes, CommunicationClientFactory's ReportOperationExceptionAsync() method
controls if the exception should be retried or not.
If you are invoking this method in Asp.Net / UI thread, these are recommendations to avoid deadlock:
1 if your calling Api is Async , use <see cref="M:System.Threading.Tasks.Task.ConfigureAwait(System.Boolean)" /> to not to resume in orignal context by setting it to false.
2 Or To invoke this Api in a threadpool thread using Task.Run.
</summary>
<returns>
A <see cref="T:System.Threading.Tasks.Task">Task</see> that represents outstanding operation. The result of the Task is
the result from the function given in the argument.
</returns>
<remarks>To be added.</remarks>
<exception cref="T:System.OperationCanceledException">The operation has been canceled.</exception>
</Docs>
</Member>
<Member MemberName="ListenerName">
<MemberSignature Language="C#" Value="public string ListenerName { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance string ListenerName" />
<MemberSignature Language="DocId" Value="P:Microsoft.ServiceFabric.Services.Communication.Client.ServicePartitionClient`1.ListenerName" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property ListenerName As String" />
<MemberSignature Language="F#" Value="member this.ListenerName : string" Usage="Microsoft.ServiceFabric.Services.Communication.Client.ServicePartitionClient<'CommunicationClient (requires 'CommunicationClient :> Microsoft.ServiceFabric.Services.Communication.Client.ICommunicationClient)>.ListenerName" />
<MemberType>Property</MemberType>
<Implements>
<InterfaceMember>P:Microsoft.ServiceFabric.Services.Communication.Client.IServicePartitionClient`1.ListenerName</InterfaceMember>
</Implements>
<AssemblyInfo>
<AssemblyName>Microsoft.ServiceFabric.Services</AssemblyName>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Docs>
<summary>
Gets the name of the listener in the replica to which the client should connect to.
</summary>
<value>Listener name</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="PartitionKey">
<MemberSignature Language="C#" Value="public Microsoft.ServiceFabric.Services.Client.ServicePartitionKey PartitionKey { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class Microsoft.ServiceFabric.Services.Client.ServicePartitionKey PartitionKey" />
<MemberSignature Language="DocId" Value="P:Microsoft.ServiceFabric.Services.Communication.Client.ServicePartitionClient`1.PartitionKey" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property PartitionKey As ServicePartitionKey" />
<MemberSignature Language="F#" Value="member this.PartitionKey : Microsoft.ServiceFabric.Services.Client.ServicePartitionKey" Usage="Microsoft.ServiceFabric.Services.Communication.Client.ServicePartitionClient<'CommunicationClient (requires 'CommunicationClient :> Microsoft.ServiceFabric.Services.Communication.Client.ICommunicationClient)>.PartitionKey" />
<MemberType>Property</MemberType>
<Implements>
<InterfaceMember>P:Microsoft.ServiceFabric.Services.Communication.Client.IServicePartitionClient`1.PartitionKey</InterfaceMember>
</Implements>
<AssemblyInfo>
<AssemblyName>Microsoft.ServiceFabric.Services</AssemblyName>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>Microsoft.ServiceFabric.Services.Client.ServicePartitionKey</ReturnType>
</ReturnValue>
<Docs>
<summary>
Gets the partition key.
</summary>
<value>Partition key</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="ServiceUri">
<MemberSignature Language="C#" Value="public Uri ServiceUri { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class System.Uri ServiceUri" />
<MemberSignature Language="DocId" Value="P:Microsoft.ServiceFabric.Services.Communication.Client.ServicePartitionClient`1.ServiceUri" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property ServiceUri As Uri" />
<MemberSignature Language="F#" Value="member this.ServiceUri : Uri" Usage="Microsoft.ServiceFabric.Services.Communication.Client.ServicePartitionClient<'CommunicationClient (requires 'CommunicationClient :> Microsoft.ServiceFabric.Services.Communication.Client.ICommunicationClient)>.ServiceUri" />
<MemberType>Property</MemberType>
<Implements>
<InterfaceMember>P:Microsoft.ServiceFabric.Services.Communication.Client.IServicePartitionClient`1.ServiceUri</InterfaceMember>
</Implements>
<AssemblyInfo>
<AssemblyName>Microsoft.ServiceFabric.Services</AssemblyName>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Uri</ReturnType>
</ReturnValue>
<Docs>
<summary>
Gets the name of the service
</summary>
<value>Name of the service</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="TargetReplicaSelector">
<MemberSignature Language="C#" Value="public Microsoft.ServiceFabric.Services.Communication.Client.TargetReplicaSelector TargetReplicaSelector { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance valuetype Microsoft.ServiceFabric.Services.Communication.Client.TargetReplicaSelector TargetReplicaSelector" />
<MemberSignature Language="DocId" Value="P:Microsoft.ServiceFabric.Services.Communication.Client.ServicePartitionClient`1.TargetReplicaSelector" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property TargetReplicaSelector As TargetReplicaSelector" />
<MemberSignature Language="F#" Value="member this.TargetReplicaSelector : Microsoft.ServiceFabric.Services.Communication.Client.TargetReplicaSelector" Usage="Microsoft.ServiceFabric.Services.Communication.Client.ServicePartitionClient<'CommunicationClient (requires 'CommunicationClient :> Microsoft.ServiceFabric.Services.Communication.Client.ICommunicationClient)>.TargetReplicaSelector" />
<MemberType>Property</MemberType>
<Implements>
<InterfaceMember>P:Microsoft.ServiceFabric.Services.Communication.Client.IServicePartitionClient`1.TargetReplicaSelector</InterfaceMember>
</Implements>
<AssemblyInfo>
<AssemblyName>Microsoft.ServiceFabric.Services</AssemblyName>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>Microsoft.ServiceFabric.Services.Communication.Client.TargetReplicaSelector</ReturnType>
</ReturnValue>
<Docs>
<summary>
Gets the information about which replica in the partition the client should connect to.
</summary>
<value>A <see cref="T:Microsoft.ServiceFabric.Services.Communication.Client.TargetReplicaSelector" /></value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="TryGetLastResolvedServicePartition">
<MemberSignature Language="C#" Value="public bool TryGetLastResolvedServicePartition (out System.Fabric.ResolvedServicePartition resolvedServicePartition);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance bool TryGetLastResolvedServicePartition([out] class System.Fabric.ResolvedServicePartition& resolvedServicePartition) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.ServiceFabric.Services.Communication.Client.ServicePartitionClient`1.TryGetLastResolvedServicePartition(System.Fabric.ResolvedServicePartition@)" />
<MemberSignature Language="VB.NET" Value="Public Function TryGetLastResolvedServicePartition (ByRef resolvedServicePartition As ResolvedServicePartition) As Boolean" />
<MemberSignature Language="F#" Value="abstract member TryGetLastResolvedServicePartition : ResolvedServicePartition -> bool
override this.TryGetLastResolvedServicePartition : ResolvedServicePartition -> bool" Usage="servicePartitionClient.TryGetLastResolvedServicePartition resolvedServicePartition" />
<MemberType>Method</MemberType>
<Implements>
<InterfaceMember>M:Microsoft.ServiceFabric.Services.Communication.Client.IServicePartitionClient`1.TryGetLastResolvedServicePartition(System.Fabric.ResolvedServicePartition@)</InterfaceMember>
</Implements>
<AssemblyInfo>
<AssemblyName>Microsoft.ServiceFabric.Services</AssemblyName>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="resolvedServicePartition" Type="System.Fabric.ResolvedServicePartition" RefType="out" />
</Parameters>
<Docs>
<param name="resolvedServicePartition">previous ResolvedServicePartition</param>
<summary>
Gets the resolved service partition that was set on the client.
</summary>
<returns>true if a ResolvedServicePartition was set</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
</Members>
</Type>